$OpenBSD: patch-tasks_toolchains_gcc_rake,v 1.1 2017/02/27 21:33:43 jca Exp $
--- tasks/toolchains/gcc.rake.orig	Mon Feb 27 22:08:50 2017
+++ tasks/toolchains/gcc.rake	Mon Feb 27 22:14:00 2017
@@ -1,7 +1,7 @@
 MRuby::Toolchain.new(:gcc) do |conf|
   [conf.cc, conf.objc, conf.asm].each do |cc|
     cc.command = ENV['CC'] || 'gcc'
-    cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)]
+    cc.flags = [ENV['CFLAGS'] || '-g -O3'] + %w(-std=gnu99 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)
     cc.defines = %w(DISABLE_GEMS)
     cc.option_include_path = '-I%s'
     cc.option_define = '-D%s'
